package com.skywolf.chem.match.service;

import com.skywolf.chem.match.entity.ApplyUserRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skywolf.chem.match.params.param.ApplyDeletedUserParam;
import com.skywolf.chem.match.params.param.ApplyUserInfoParam;
import com.skywolf.chem.match.params.param.ApplyUserListParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2021-09-26
 */
public interface IApplyUserRecordService extends IService<ApplyUserRecord> {

    /**
     * 验证和新增报名用户信息
     * @param userId
     * @param param
     */
    void insertAndVerifyApplyUser(Long userId, ApplyUserInfoParam param) throws Exception;

    /**
     * 修改报名人信息
     * @param userId
     * @param param
     */
    void updateApplyUser(Long userId, ApplyUserInfoParam param) throws Exception;

    /**
     * 删除报名人信息
     * @param userId
     * @param param
     */
    void deletedApplyUser(Long userId, ApplyDeletedUserParam param) throws Exception;

    /**
     * 获取报名人列表
     * @param userId
     * @param param
     * @return
     */
    List<ApplyUserInfoParam> getApplyUserList(Long userId, ApplyUserListParam param);

    /**
     * 清空报名人列表
     * @param userId
     * @param param
     */
    void clearApplyUserList(Long userId, ApplyUserListParam param);
}
